package com.android.djlmapp.activity.recharge;

import android.content.Intent;
import android.os.Bundle;
import android.support.constraint.ConstraintLayout;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.android.djlmapp.R;
import com.android.djlmapp.base.BaseActivity;
import com.android.djlmapp.wxapi.WeiXinPayActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 张鹏
 * 加款界面
 */
public class AddMoneyActivity extends BaseActivity {

    @BindView(R.id.ll_top_back)
    LinearLayout llTopBack;
    @BindView(R.id.tv_name)
    TextView tvName;
    @BindView(R.id.iv_top_msg)
    ConstraintLayout ivTopMsg;
    @BindView(R.id.iv_top_set)
    ImageView ivTopSet;
    @BindView(R.id.iv_top_kf)
    ImageView ivTopKf;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_add_money);
        ButterKnife.bind(this);
        initView();
    }

    @Override
    protected void initView() {
        llTopBack.setVisibility(View.VISIBLE);
        ivTopMsg.setVisibility(View.GONE);
        ivTopSet.setVisibility(View.GONE);
        ivTopKf.setVisibility(View.VISIBLE);
        tvName.setText("加款");
    }

    @Override
    protected void initData() {

    }

    @OnClick({ R.id.rl_zfb, R.id.rl_weixin, R.id.rl_yhk, R.id.rl_ywt})
    public void onViewClicked(View view) {
        switch (view.getId()) {

            case R.id.rl_zfb:
                startActivity(new Intent(AddMoneyActivity.this, ZhiFuBaoActivity.class));
                break;
            case R.id.rl_weixin:
                startActivity(new Intent(AddMoneyActivity.this, WeiXinPayActivity.class));
                break;
            case R.id.rl_yhk:
                startActivity(new Intent(AddMoneyActivity.this, YinHangKaActivity.class));
                break;
            case R.id.rl_ywt:
                startActivity(new Intent(AddMoneyActivity.this, YiWangTongActivity.class));
                break;
        }
    }
}
